#include <iostream>


class A
{

public:
    A(int i) : i_(i) {}
    int get() const {
        return i_;
    }

private:
    int i_;

};

std::ostream& operator<< (std::ostream& os, const A& a){
    return os << a.get();
}

int main()
{
    A a(2);
    std::cout << a << std::endl;
    return 0;
}
